<div class="row">
	<div class="col-md-12">
		<h1 class="text-center"><?php echo __("Partner"); ?></h1>
	</div>
	<?foreach ($partners as $partner) { ?>
		<div class="col-md-12 partner">
			<h2><a href="<?php echo $partner["Partner"]["url"] ?>" ><?php echo $partner["Partner"]["url"] ?></a></h2>				
			<h3>
		        <?php echo html_entity_decode($partner["PartnerLang"][Configure::read("Config.language")]["descrizione"] ,ENT_QUOTES);?>
			</h3>				
            <?php if($this->Session->read("Auth.User.isAdministrator")) { ?>
                <a data-confirm href="<?php echo $this->webroot?>Partner/delete/<?php echo $partner["Partner"]["id"]; ?>"><i class="fa-trash-o"></i> </a></td>
                <a href="<?php echo $this->webroot?>Partner/edit/<?php echo $partner["Partner"]["id"]; ?>"><i class="fa-pencil"></i> </a></td>
            <?php } ?>
		</div>
	<? } ?> 
    <?php if($this->Session->read("Auth.User.isAdministrator")) { ?>
    	<a href="<?php echo $this->webroot?>Partner/add"><i class="fa-plus"></i> <?php echo __("Aggiungi un Partner");?></a>
    <?php } ?>

</div>